//package statement
package switchTransaccional.controllers;

//Salmon import statements
import com.salmonllc.jsp.*;
import com.salmonllc.html.events.*;


/**
 * LkpConfiguracionesServiciosController: a SOFIA generated controller
 */
public class LkpConfiguracionesServiciosController extends JspController implements SubmitListener, PageListener {

/**
	 * 
	 */
	private static final long serialVersionUID = 3815578893204602183L;
	//Visual Components
      public com.salmonllc.html.HtmlText _atributoIdCAP10;
      public com.salmonllc.html.HtmlText _buscarCAP5;
      public com.salmonllc.html.HtmlText _cardinalidadCAP13;
      public com.salmonllc.html.HtmlText _cardinalidadTXT6;
      public com.salmonllc.html.HtmlText _configuracionIdTXT6;
      public com.salmonllc.html.HtmlText _descripcionCAP12;
      public com.salmonllc.html.HtmlText _descripcionTXT8;
      public com.salmonllc.html.HtmlText _nombreCAP11;
      public com.salmonllc.html.HtmlText _nombreTXT7;
      public com.salmonllc.html.HtmlText _prioridadCAP14;
      public com.salmonllc.html.HtmlText _prioridadTXT6;
      public com.salmonllc.html.HtmlTextEdit _buscarTE3;
      public com.salmonllc.html.HtmlValidatorText _valErrorMessage;
      public com.salmonllc.jsp.JspBox _box1;
      public com.salmonllc.jsp.JspBox _box2;
      public com.salmonllc.jsp.JspDataTable _datatable1;
      public com.salmonllc.jsp.JspForm _pageForm;
      public com.salmonllc.jsp.JspListFormDisplayBox _listformdisplaybox1;
      public com.salmonllc.jsp.JspSearchFormDisplayBox _searchformdisplaybox1;
      public com.salmonllc.jsp.JspTableCell _datatable1TDHeader0;
      public com.salmonllc.jsp.JspTableCell _datatable1TDHeader1;
      public com.salmonllc.jsp.JspTableCell _datatable1TDHeader2;
      public com.salmonllc.jsp.JspTableCell _datatable1TDHeader3;
      public com.salmonllc.jsp.JspTableCell _datatable1TDHeader4;
      public com.salmonllc.jsp.JspTableCell _datatable1TDRow0;
      public com.salmonllc.jsp.JspTableCell _datatable1TDRow1;
      public com.salmonllc.jsp.JspTableCell _datatable1TDRow2;
      public com.salmonllc.jsp.JspTableCell _datatable1TDRow3;
      public com.salmonllc.jsp.JspTableCell _datatable1TDRow4;
      public com.salmonllc.jsp.JspTableRow _datatable1TRHeader0;
      public com.salmonllc.jsp.JspTableRow _datatable1TRRow0;

//DataSources
      public com.salmonllc.sql.QBEBuilder _dsQBE;
      public infraestructura.models.ConfiguracionModel _dsConf;

//DataSource Column Constants
       public static final String DSQBE_BUSCAR="buscar";

       public static final String DSCONF_CONFIGURACION_CONFIGURACION_ID="configuracion.configuracion_id";
       public static final String DSCONF_CONFIGURACION_ESQUEMA_CONFIGURACION_ID="configuracion.esquema_configuracion_id";
       public static final String DSCONF_CONFIGURACION_NOMBRE="configuracion.nombre";
       public static final String DSCONF_CONFIGURACION_DESCRIPCION="configuracion.descripcion";
       public static final String DSCONF_CONFIGURACION_OBSERVACIONES="configuracion.observaciones";
       public static final String DSCONF_CONFIGURACION_CARDINALIDAD="configuracion.cardinalidad";
       public static final String DSCONF_CONFIGURACION_PRIORIDAD="configuracion.prioridad";
       public static final String DSCONF_ESQUEMA_CONFIGURACION_NOMBRE="esquema_configuracion.nombre";
       public static final String DSCONF_ESQUEMA_CONFIGURACION_TIPO_OBJETO="esquema_configuracion.tipo_objeto";
       public static final String DSCONF_ESQUEMA_CONFIGURACION_NOMBRE_OBJETO="esquema_configuracion.nombre_objeto";

 
/**
 * Initialize the page. Set up listeners and perform other initialization activities.
 */
public void initialize(){
	// setea como criterio recuperar solamente configuraciones del 
	// esquema que tenga como nombre de objeto SERVICIOS_DISTRIBUIDOS
	_dsConf.setCriteria("configuracion.esquema_configuracion_id in "
			+ "(select t1.esquema_configuracion_id"
			+ "   from infraestructura.esquema_configuracion t1"
			+ "  where t1.tipo_objeto = \"TABLA\""
			+ "    and t1.nombre_objeto = \"servicio_distribuido\")");
     
	addPageListener(this);
}
 
/**
 * Process the given submit event
 * @param event the submit event to be processed
 * @return true to continue processing events, false to stop processing events
 */
public boolean submitPerformed(SubmitEvent event) {
     return true;
}
 
/**
 * Process the page requested event
 * @param event the page event to be processed
 */
public void pageRequested(PageEvent event) {
}
 
/**
 * Process the page request end event
 * @param event the page event to be processed
 */
public void pageRequestEnd(PageEvent event) {
}
 
/**
 * Process the page submit end event
 * @param event the page event to be processed
 */
public void pageSubmitEnd(PageEvent event) {
}
 
/**
 * Process the page submit event
 * @param event the page event to be processed
 */
public void pageSubmitted(PageEvent event){
}

}
